package com.jrx.anytxn.reporting.job.loanAcct.step;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.reporting.bean.ReportingDataBean;
import com.jrx.anytxn.reporting.service.IReportingDataDealService;
import com.jrx.anytxn.transaction.entity.AmLoanAccountInfo;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AutoAssemReportingProcessor implements ItemProcessor<AmLoanAccountInfo, ReportingDataBean> {

    @Autowired
    private IReportingDataDealService reportingDataDealService;

    @Override
    public ReportingDataBean process(AmLoanAccountInfo item) throws TxnBizException {
        return reportingDataDealService.assemReportingData(item);
    }
}
